package com.one.rope.mvp.web.common.dto.common;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author Weijian.Liu
 * @desc 行政区域列表接口返回
 * @date 2020/2/23 19:33
 */
@Data
@ApiModel
public class AreaInfoVO {

  @ApiModelProperty(value = "区域code")
  @JsonProperty(value = "area_code")
  private String areaCode;

  @ApiModelProperty(value = "区域名称")
  @JsonProperty(value = "area_name")
  private String areaName;

  @ApiModelProperty(value = "级别 1-省 2-市 3-区县")
  private Integer codLevel;

  @ApiModelProperty(value = "父级id")
  private String txtParentId;

  @ApiModelProperty(value = "子区域列表")
  @JsonProperty(value = "child_list")
  private List<AreaInfoVO> childList;
}
